{x2;include:header}
<body>
{x2;include:nav}
<div class="container-fluid">
	<div class="row-fluid">
		<div class="main">
			<div class="col-xs-2" style="padding-top:10px;margin-bottom:0px;">
				{x2;include:menu}
			</div>
			<div class="col-xs-10" id="datacontent">
				<div class="box itembox" style="margin-bottom:0px;border-bottom:1px solid #CCCCCC;">
					<div class="col-xs-12">
						<ol class="breadcrumb">
							<li><a href="index.php?core-master">全局</a></li>
							<li class="active">添加更新记录</li>
						</ol>
					</div>
				</div>
				<div class="box itembox" style="padding-top:10px;margin-bottom:0px;">
					<div class="col-xs-12">
						<h5 class="title">
							添加更新记录
							<a class="btn btn-primary pull-right" href="index.php?core-master-notice">返回 Update Notice</a>
						</h5>
						<form class="form-horizontal h4" action="index.php?core-master-notice-insert" method="post">
							<div class="form-group">
								<label class="col-md-2 control-label">更新时间</label>
								<div class="col-md-5">
									<input type="text" class="form-control input-lg" name="noticetime" value="<?=date('Y-m-d')?>" readonly>
								</div>
							</div>
							<div class="form-group">
								<label class="col-md-2 control-label">更新人</label>
								<div class="col-md-5">
									<input type="text" class="form-control input-lg" name="noticeuser" value="{x2;$_user['username']}" readonly>
								</div>
							</div>
							<div class="form-group">
								<label class="col-md-2 control-label">更新信息</label>
								<div class="col-md-8">
									<input type="text" name="msg[]" class="form-control input-lg" placeholder="填写更新信息，45个字以内" maxlength="45">
								</div>
							</div>
							<div class="form-group">
								<label class="col-md-2 control-label">更新信息</label>
								<div class="col-md-8">
									<input type="text" name="msg[]" class="form-control input-lg" placeholder="填写更新信息，45个字以内" maxlength="45">
								</div>
								<div class="col-md-2" style="line-height:40px">
									<button type="button" class="btn btn-success btn-sm btn-lg plus"><span class="glyphicon glyphicon-plus"></span></button>
									<button type="button" class="btn btn-danger btn-sm btn-lg minus"><span class="glyphicon glyphicon-minus"></span></button>
								</div>
							</div>

							<div class="form-group">
								<div class="col-md-offset-2 col-md-10">
									<button type="submit" class="btn btn-primary">保 存 记 录</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
{x2;include:footer}

<script>
    $(function () {
		$(document).on('click','.box .form-group .plus',function () {
		    // 克隆一个信息节点，用于填入更多信息
			var tag = $(this).parents('.form-group');
            tag.after($(this).parents('.form-group').clone());
            console.log(tag.next('.form-group').find("[type='text']").val(''));
        });
        $(document).on('click','.box .form-group .minus',function () {
            // 删除一个信息节点
            $(this).parents('.form-group').remove();
        });
    });
</script>


<script type="text/javascript" src="https://s9.cnzz.com/z_stat.php?id=1277952714&web_id=1277952714" async="async"></script>
</body>
</html>
